/// 可以直接从内存中读取或写入的数据类型
pub trait MemoryRawData<Rhs = Self, Output = Self>: Copy {}

macro_rules! impl_raw_data {
    ($($type: ty),+) => {
        $(
            impl MemoryRawData for $type{}
        )+
    };
}

impl_raw_data!(u8, u16, u32, u64, usize, i8, i16, i32, i64, isize);
